package cn.edu.hqu.cst.android.XZY.Experiment2;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class UC1 extends AppCompatActivity {

    private Button retenbutton1;
    private Button but1,but2,but3;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_u_c1);
        retenbutton1=findViewById(R.id.retbut1);
        but1=findViewById(R.id.but1);
        but2=findViewById(R.id.but2);
        but3=findViewById(R.id.but3);

        retenbutton1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                //返回至主界面
                Intent intent1 = new Intent(UC1.this,MainActivity.class);
                startActivity(intent1);
            }
        });

        but1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent2 = new Intent(UC1.this,shuping.class);
                startActivity(intent2);
            }
        });
        but2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent3 = new Intent(UC1.this,chuizhi.class);
                startActivity(intent3);
            }
        });
        but3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent4 = new Intent(UC1.this,kaozuo.class);
                startActivity(intent4);
            }
        });
    }
}